package cn.aitstone.controller;
import cn.aitstone.entity.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class UserController {
    @GetMapping("/user/{id}")
    public User getById(@PathVariable Long id){
        return User.builder().id(id).name("杜甫").intro("诗圣").build();
    }

}
